package com.efesco.payroll.pay;

import com.bstek.dorado.common.*;
import com.bstek.dorado.data.*;
import com.bstek.dorado.view.*;
import com.bstek.dorado.view.data.*;
import com.bstek.dorado.view.control.*;
import com.bstek.dorado.view.control.dropdown.ListDropDown;

/**
 * PaySendListViewModel
 */
public class PaySendListViewModel extends DefaultViewModel {
  protected void initDatasets()
      throws Exception {
    super.initDatasets();
    // Add your code here
  }

  protected void initControls() throws Exception {
    super.initControls();
    
	ListDropDown dropDown1 = (ListDropDown)this.getControl("dropdownYear");
	for (int i = 2000; i < 2050; i++) {
		dropDown1.addItem(i + "");
	}
	ListDropDown dropDown2 = (ListDropDown)this.getControl("dropdownMonth");
	for (int i = 1; i <= 12; i++) {
		String tmp = i < 10 ? ("0" + i) : ("" + i);
		dropDown2.addItem(tmp);
	}    
  }

  protected void doUpdateData(ParameterSet parameters, ParameterSet outParameters)
      throws Exception {
    // Add your code here
    super.doUpdateData(parameters, outParameters);
  }

}
